public class Test {
    public static void main1(String[] args) {
        MyLinkedQueue queue = new MyLinkedQueue();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        queue.offer(4);
        queue.offer(5);
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        queue.disPlay();
    }

    public static void main2(String[] args) {
        MyCirCleQueue queue = new MyCirCleQueue(6);
        queue.offer(6);
        System.out.println(queue.peek());
        System.out.println(queue.peek());
        queue.poll();
        queue.offer(5);
        System.out.println(queue.peek());
        queue.poll();
        System.out.println(queue.front());
    }

    public static void main(String[] args) {
        MyStack mystack = new MyStack();
        mystack.push(1);
        mystack.push(2);
        System.out.println(mystack.top());
        System.out.println(mystack.pop());
        System.out.println(mystack.empty());
    }

    public static void main4(String[] args) {
        MyQueue queue = new MyQueue();
        queue.push(1);
        queue.push(2);
        queue.push(3);
        queue.push(4);
        System.out.println(queue.pop());
        queue.push(5);
        System.out.println(queue.pop());
        System.out.println(queue.pop());
        System.out.println(queue.pop());
        System.out.println(queue.pop());
    }
}
